package com.pet.cart.domain.dto;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;

@Data
@ApiModel(value="添加购物车表单")
public class CartItemDTO {
    @ApiModelProperty(value = "商品id")
    @NotBlank(message = "商品id")
    private Integer itemId;

    @ApiModelProperty(value = "数量")
    private Integer quantity = 1;
}
